Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

vue-manual-data-masking

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-manual-data-masking

A vue2 component for manual data masking

  • 0.1.14
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

vue-manual-data-masking

Vue2 version of easy-data-masking.

Features

  1. Input dialog (supporting enter keypress) for entering categories of sensitive data like swear word, person name, home address...
  2. Display sensitive data been masked when mouse hover.
  3. Hide sensitive data by using characters like "●" and "*".

Demo

Edit on CodeSandbox

Installation

npm install --save vue-manual-data-masking

How to use

import dataMasking from "vue-manual-data-masking";
<data-masking v-model="dataMasked" :text="text" @afterMasking="afterMasking" />

Options

PropertyDescriptionTypeRequiredDefault
v-modelData been masked
e.g.
[{ content: "080080080", category: "phone number", start: 0, end: 5 }]
Arraytrue[]
texttextStringtrue
maskingTextColorcolor of masking textStringfalse"#35495e"
maskingBgColorcolor of masking backgroundStringfalse"#41b883"
maxHeightmax height of data masking containerNumber or Nullfalsenull

Events

afterMasking event will be emitted when new sensitive data been masked. textAfterMasking can be used inside of the callback function registered in advance.

Build Setup

# install dependencies
npm install
# serve with hot reload at localhost:8888
npm run serve
# build for production with minification
npm run build

Keywords

FAQs

Package last updated on 27 May 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc